package com.lst.tools.wx.smallroutine.constants;

/**
 * @author: Frank
 * @date: 2019/09/24 13:51
 * @version: V1.0
 */
public enum WxSmallRoutineEnum {

    APP_ID_PLACEHOLDER("{APP_ID}"),
    APP_SECRET_PLACEHOLDER("{APP_SECRET}"),
    CODE_PLACEHOLDER("{CODE}"),
    ACCESS_TOKEN_PLACEHOLDER("{ACCESS_TOKEN}"),
    CATCH_BASIC_ACCESS_TOKEN_URL("https://api.weixin.qq.com/cgi-bin/token?grant_type=client_credential&appid={APP_ID}&secret={APP_SECRET}"),
    CATCH_SMALL_ROUTINE_QR_CODE_URL("https://api.weixin.qq.com/wxa/getwxacodeunlimit?access_token={ACCESS_TOKEN}"),
    SMALL_ROUTINE_LOGIN_URL("https://api.weixin.qq.com/sns/jscode2session?appid={APP_ID}&secret={APP_SECRET}&js_code={CODE}&grant_type=authorization_code"),
    SEND_TEMPLATE_MESSAGE_URL("https://api.weixin.qq.com/cgi-bin/message/wxopen/template/send?access_token={ACCESS_TOKEN}"),
    REQUEST_SUCCESS_CODE("0");

    private String value;

    WxSmallRoutineEnum(String value) {
        this.value = value;
    }

    public String getValue() {
        return this.value;
    }
}
